//
//  JWshowMeCell.m
//  见闻新闻
//
//  Created by brother on 16/3/14.
//  Copyright © 2016年 JoanBoat. All rights reserved.
//

#import "JWshowMeCell.h"

#import "JWUserModel.h"

#import <UIImageView+WebCache.h>

@interface JWshowMeCell ()

@end

@implementation JWshowMeCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


+ (instancetype)showMeCellWithTableView:(UITableView *)tableView {
    JWshowMeCell *cell = [tableView dequeueReusableCellWithIdentifier:@"JWshowMeCell"];
    if (cell == nil) {
        UINib *nib = [UINib nibWithNibName:@"JWshowMeCell" bundle:nil];
        cell = [[nib instantiateWithOwner:nil options:nil] lastObject];
        
        cell.icon.layer.cornerRadius = cell.icon.bounds.size.height *0.5;
        
        cell.icon.layer .masksToBounds = YES;

        
    }
    return cell;
}

//-(void)setUser:(JWUserModel *)user {
//
//    _user = user;
//    
//    self.nameLabel.text = self.user.name;
//    
//    self.icon.image = [UIImage imageNamed:@"sidebar_bg.jpg"];
//    
////    [self.icon.image sd_setImageWithURL:[NSURL URLWithString:user.user_icon]];
//    
//
//}

@end
